Add oh-my-pi (omp) as a supported coding agent - #513
Open
zhulinchng wants to merge 1 commit into
Open
Conversation
Coexists with pi: isolated omp-home config, YAML models.yml, modelRoles.default pin in config.yml, MCP wiring, and tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ucode can now configure, launch, validate, and register MCP servers for oh-my-pi (
omp,@oh-my-pi/pi-coding-agent), alongside the existingpientry.ucode configure --tools omp,ucode omp,ucode doctor,ucode status, anducode revertall cover it.How
agents/omp.py(mirrorspi.py, no shared abstraction): isolated~/.ucode/omp-home/.omp/agent, YAMLmodels.ymlwith the three Databricks providers (anthropic-messages/openai-responses/google-generative-ai), default model pinned viamodelRoles.defaultinconfig.yml(models.ymlroot must be providers-only per omp's schema), baked-token refresh thread,--printvalidation,{command, args}-only MCP entries (omp'sstdioServerforbids other keys).base_urls["omp"]; MCP backup restore on revert. NoOAUTH_TOKEN(omp never reads it).pyyamlpromoted to a direct dependency (2-line lock delta).flowchart LR C[ucode configure --tools omp] --> W[agents/omp.write_tool_config] W --> M[models.yml: providers + apiKey] W --> D[config.yml: modelRoles.default] L[ucode omp] --> R[token refresh thread] R --> O[omp binary\nPI_CODING_AGENT_DIR=omp-home] O --> G[AI Gateway\nanthropic/codex/gemini] P[ucode configure mcp] --> J[omp-home mcp.json\nucode mcp-proxy stdio]Verification
ruff check+ruff format --checkclean; full unit suite 2344 passed.omp modelsresolves the catalog;--printroutesPOST /anthropic/v1/messages?beta=truewith bearer auth and noeager_input_streaming; the codex path hits/codex/v1/responseswith the ucode UA.Non-goals
Managed-config support (server proto has no omp variant), OSS models, e2e additions.